﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using AjaxControlToolkit;

namespace SisEagle.View.Web
{
    public partial class teste : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RadioButtonList1.SelectedIndexChanged += (RadioButtonList1_SelectedIndexChanged);
        }

        //Roda essa pagina e veja como o popup e executado
        void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (! string.IsNullOrEmpty(RadioButtonList1.SelectedValue))
            {
                PopupControlExtender.GetProxyForCurrentPopup(Page).Commit(RadioButtonList1.SelectedValue);
            }
            RadioButtonList1.ClearSelection();
        }

       
    }
}